package com.xsf.jieyou.provider.service;

import com.xsf.jieyou.provider.api.ProviderTbUserRoleService;
import com.xsf.jieyou.provider.domain.TbUserRole;
import com.xsf.jieyou.provider.mapper.TbUserRoleMapper;
import org.apache.dubbo.config.annotation.Service;

import javax.annotation.Resource;

/**
 * 用户角色第三方表
 * <p>
 * Description:TODO
 * </p>
 *
 * @author xsf
 * @version v1.0.0
 * @date 2019/11/18 0018 21:04
 * @see com.xsf.jieyou.provider.service
 **/
@Service(version = "1.0.0")
public class ProviderTbUserRoleServiceImpl implements ProviderTbUserRoleService {
    @Resource
    private TbUserRoleMapper tbUserRoleMapper;

    /**
     * 为用户新增角色
     *
     * @param tbUserRole {@link Long} 用户角色第三方表
     * @return {@link Integer}
     */
    @Override
    public int insertTbUserRole(TbUserRole tbUserRole) {
        return this.tbUserRoleMapper.insert(tbUserRole);
    }
}
